﻿@using CodeCamp.Models.Sessions
@model SessionsTagViewModel
@{
    ViewBag.Title = "";
    if ((@Model != null) && (@Model.EventDisplayName != null) && (@Model.ThisTag != null))
    {
        ViewBag.Title = @Html.Encode(@Model.EventDisplayName + " | Sessions tagged " + @Model.ThisTag.Name);
    }
    else
    {
        ViewBag.Title = "Code Camp | Sessions";
    }
}

<h2 class="title">Sessions tagged as @Model.ThisTag.Name</h2>

<div class="presentations">
    @foreach (var session in Model.Sessions)
    {
        <div class="presentation-container">
            @Html.Partial("PartialViews/SessionTitle", new SessionTitle { SessionId = session.Id, Title = session.Title})
            @Html.Partial("PartialViews/SessionTags", session.Tags)
            @Html.Partial("PartialViews/SessionPresenters", session.SessionPresenters.Presenters)<br />
            <p>@session.Description</p>
        </div>
    }
</div>


@section sidebar {
    @Html.Partial("SidebarCommonPartial")

    <div id="eventTagsContainer" class="widget rounded-10">
        <h3>Event Tags</h3>
        @Html.Partial("PartialViews/EventTags", Model.EventTagsInUse)
    </div>
}
